# -*- coding: utf-8 -*-
# @Time    : 2021/4/20 21:09
# @Author  : xxue
# @Email   : x_xue1212@163.com
# @File    : 统计字符串中每个单词出现的次数.py
# @Software: PyCharm


# 统计字符串中每个单词出现的次数
from collections import Counter

str= input("请任意输入：")
counts=Counter(str.split())
print(counts)
